<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="com.wy17113.model.entity.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";

	List allCommons = (List) request.getAttribute("allCommons");
	String pageStr = (String) request.getAttribute("pageStr");
	String infoId = (String) request.getAttribute("infoId");
	LifeInfo lifeInfo = (LifeInfo) request.getAttribute("lifeInfo");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0060)http://www.xingtai123.com/shenghuo/news.asp -->
<HTML>
	<HEAD>
		<TITLE>邯郸001-邯郸屌丝贴</TITLE>
		<META content="text/html; charset=gb2312" http-equiv=Content-Type>
		<LINK rel=stylesheet type=text/css href="css/post.css">
		
		<script charset="utf-8" type="text/javascript"  src="js/jquery-1.2.6.min.js"></script>
		<script charset="utf-8" type="text/javascript"  src="js/jquery.form.js"></script>		
		<META name=GENERATOR content="MSHTML 8.00.6001.19222">
<script type="text/javascript">
//分页函数
function getLifeInfoList(pageNum) {
	window.location.href = "doLifeInfo.do?opers3=getCommonListByInfoId&infoId=<%=infoId %>&pageNum=" + pageNum;
}

$(document).ready(function() {
	//提交参数
	var options = {	
		   dataType:'text',		   
		   success: function(message){
		   		document.getElementById("operateMessage").innerHTML = message;		   		
		   		window.setTimeout("document.getElementById('operateMessage').innerHTML = ''; document.getElementById('Content').value = ''; document.getElementById('random').value = '';",15000);		   		
		   		$('#Submit').attr("disabled",false);
		   		window.location.href = "doLifeInfo.do?opers3=getCommonListByInfoId&infoId=<%=infoId%>";
		   },
		   
		   //验证表单
		    beforeSubmit: function() {
		    	var random = $('#random').attr("value");	
				var content = $('#content').attr("value");	
				
				if (content == '' || content == null) {
					alert('您的内容不能为空！');
					document.myform.content.focus();
					return false;
				} else if (content.length > 500) {
					alert('信息内容超过500个字！');
					document.myform.content.focus();
					return false;
				} else if (random == '' || random == null) {
					alert('您的验证码为空！');
					document.myform.random.focus();
					return false;
				}
				$('#Submit').attr("disabled",true);
		    	return true;
		    }
	};

	//提交操作
    $('#myform').ajaxForm(options);
});
</script>
<style type="text/css">
A:link {
	COLOR: #0000E3;
	TEXT-DECORATION: none
}

A:visited {
	COLOR: #0000E3;
	TEXT-DECORATION: none
}

A:hover {
	COLOR: #ff3300;
	TEXT-DECORATION: underline
}

.fenye{height:20px;padding:20px 0;text-align:center;clear:both}.pageLink{padding:0 5px 0 0}
.pageLink li{margin:0 1px;display:inline}.pageLink li a{padding:1px 5px;margin:0 1px;background:#eee;border:1px solid #ddd;font-size:14px;color:#000}
.pageLink a.prev,.pageLink a.next{overflow:hidden;margin:0;border:0;font-weight:bold;text-decoration:underline;background:0;color:#24d}
.pageLink a.c{background:#2a5db0;border:1px solid #003894;color:#fff}

</style>
	</HEAD>
	<BODY>
		<DIV align="center">
			<DIV align=center>
				<TABLE border=0 cellSpacing=0 cellPadding=0 width=980 align=center>
					<TBODY>
						<TR>
							<TD height=51 vAlign=top width=1006 align=center>
								<TABLE border=0 cellSpacing=0 cellPadding=0 width=869
									bgColor=#c9ebff>
									<TBODY>
										<TR>
											<TD bgColor=#8adcfb borderColor=#000000 align=center>
												<TABLE class=zi14_black_xi border=0 cellSpacing=1
													cellPadding=0 width=980>
													<TBODY>
														<TR>
															<TD class=zi_hei_12_21 bgColor=#f1f3f5 align=left>
																<TABLE border=0 cellSpacing=0 cellPadding=6 width=980>
																	<TBODY>
																		<TR>
																			<TD align="center">
																				<SPAN
																					style="BACKGROUND-COLOR: #336699; COLOR: #ffffff; FONT-SIZE: 18px"><%=lifeInfo.getContent()%>
																				</SPAN>
																			</TD>
																		</TR>
																	</TBODY>
																</TABLE>
																<TABLE border=0 cellSpacing=0 cellPadding=0 width=980
																	height=17>
																	<TBODY>
																		<TR>
																			<TD class=zi_hei_12_21 align=center width=989
																				align=center>
																				<FONT color=#008000 size=2>&nbsp;网友&nbsp;&nbsp;&nbsp;<%=lifeInfo.getSubDate()%></FONT>
																			</TD>
																		</TR>
																	</TBODY>
																</TABLE>
																<TABLE border=0 width=951>
																	<TBODY>
																		<TR>
																			<TD height=70 width=44>
																			</TD>
																			<TD style="LINE-HEIGHT: 150%; FONT-SIZE: 16px; WORD-BREAK: break-all">
																				<%=lifeInfo.getMemo()%>
																				<BR>
																				<BR>
																			</TD>
																		</TR>
																	</TBODY>
																</TABLE>
																<TABLE id=table4 border=0 cellSpacing=0 cellPadding=0
																	width=848>
																	<TBODY>
																		<TR>
																			<TD>
																			</TD>
																		</TR>
																	</TBODY>
																</TABLE>
															</TD>
														</TR>
													</TBODY>
												</TABLE>
											</TD>
										</TR>
									</TBODY>
								</TABLE>
							</TD>
						</TR>
					</TBODY>
				</TABLE>

				<p style="margin-bottom: 0">
					<c:forEach var="common" items="<%=allCommons%>">
						<TABLE class=zi14_black_xi border=0 cellSpacing=0 cellPadding=0
							width=980 align=center>
							<TBODY>
								<TR>
									<TD bgColor=#f1f3f5 height=51 vAlign=top align="center">
										<TABLE border=1 cellSpacing=0 borderColor=#8adcfb
											cellPadding=0 width=980>
											<TBODY>
												<TR>
													<TD bgColor=#ebf9ff height=26 borderColor=#bee7ff>
														<TABLE class=zi14_black_xi border=0 cellSpacing=0
															cellPadding=0 width="100%">
															<TBODY>
																<TR>
																	<TD width=5>
																	</TD>
																	<TD class=zi_hei_12_21 width=740 align=left>
																		<B>${common.sort }  楼回帖：</B>
																	</TD>
																	<TD class=zi_hei_12_21 width=214 align=left>
																		&nbsp;&nbsp;&nbsp;${common.subDate }
																	</TD>
																</TR>
															</TBODY>
														</TABLE>
													</TD>
												</TR>
											</TBODY>
										</TABLE>
										<TABLE border=0 width=888 align=center>
											<TBODY>
												<TR>
													<TD width=4>
													</TD>
													<TD
														style="LINE-HEIGHT: 150%; WORD-WRAP: break-word; FONT-SIZE: 16px"
														width=840 align=left>
														${common.content }
														<BR>
														<BR>
													</TD>
												</TR>
											</TBODY>
										</TABLE>
									</TD>
								</TR>
							</TBODY>
						</TABLE>
					</c:forEach>
				
				<div style="background-color: #ebf9ff; border-color: #8adcfb; width: 980">
					<ul class="pageLink" style="margin: 1">
						<li>
							<%=pageStr%>
						</li>
					</ul>
				</div>

				<form id="myform" name="myform" action="AjaxOperateSaveDiaoSiCommonServlet" method="post" style="margin-bottom: 0">
						<TABLE border=0 cellSpacing=1 cellPadding=0 width=980
							bgColor=#89d4f8>
							<TR>
								<TD class=zi14_black_xi bgColor=#f1f3f5 height=34 align=center
									width=136 align=center>
									<B><SPAN class=zi14_black_xi>发表回帖：</SPAN> </B>
								</TD>
								<TD class=zi_hei_12_21 bgColor=#f1f3f5 colSpan=2 align=left>
									&nbsp;
									<font color="000000"><strong><%=lifeInfo.getContent()%></strong>
									</font>
								</TD>
							</TR>
							<TR>
								<TD class=zi_hei_12_21 bgColor=#f1f3f5 height=163 align=center>
									<B><SPAN class=zi14_black_xi>回帖内容：</SPAN> </B>
									<BR>
								</TD>
								<TD class=zi_hei_12_21 bgColor=#f1f3f5 width=756 align=left>
									&nbsp;
									<TEXTAREA id="content" class=content_sh rows=9 cols=88
										name="content"></TEXTAREA>
									<div id="body_length">
										&nbsp;<font color="#ff0000">&nbsp;最多回帖字数：500</font>
										<br>
										<p>
									</div>
								</TD>
							</TR>
		
							<TR>
								<TD class=zi14_black_xi bgColor=#f1f3f5 height=34 align="center">
									<B><SPAN class=zi14_black_xi>提示：</SPAN> </B>
								</TD>
								<TD class=zi_hei_12_21 bgColor=#f1f3f5 colSpan=2 align=left>
									<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
										<TBODY>
											<TR>
												<TD class=zi_hei_12_21>
													&nbsp;<font color="green" size=2>&nbsp;<strong>您目前是以"邯郸居民"名义发表&nbsp;&nbsp;(无须注册即可发贴)</strong> </font>
												</TD>
											</TR>
										</TBODY>
									</TABLE>
								</TD>
							</TR>
		
							<TR align=center>
								<TD bgColor=#e9f6ff height=34 align=center>
									<B><SPAN class=zi14_black_xi>验证码：</SPAN> </B>
								</TD>
								<TD bgColor=#e9f6ff height=34 align=center colSpan=2 align=left>
									<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
										<TBODY>
											<TR>
											<TD class=zi_hei_12_21 bgColor=#e9f6ff height=34 width="32%">
												&nbsp;
												<input type="text" name="random" id="random" size="12" />

												<img id="xMan" src="imgcode"
													onclick="javascript:changeOne();" />
												<a href="javascript:changeOne();">换一张</a>
												<script type="text/javascript">
													function changeOne() {
														//$('#xMan').attr('src', 'imgcode');
														document.getElementById("xMan").src="imgcode?"+Math.random();
													}
												</script>
											</TD>
										</TR>
										</TBODY>
									</TABLE>
								</TD>
							</TR>
							<TR align=center>
								<TD bgColor=#f1f3f5 height=34 align=center colSpan=3>
									<INPUT id="infoId" value="<%=infoId %>" type=hidden name="infoId">
									<font size="2"><span id="operateMessage"></span></font><br/>
									<input class="sub_1" value="发布回帖" name="Submit" type="submit" id="Submit"/>
								</TD>
							</TR>
						</TABLE>
				</form>
				
				<TABLE border=0 cellSpacing=0 cellPadding=0 width=980 align=center>
					<TBODY>
						<TR>
							<TD>
								<TABLE border=0 cellSpacing=0 width="100%">
									<TBODY>
										<TR>
											<TD bgColor=#e6e6e6 height=30 align=center>
												<A href="http://www.handan001.com/me.html" target=_blank><STRONG>
												<SPAN style="FONT-FAMILY: 黑体; COLOR: #ff0000; FONT-SIZE: 16px"><a target="_blank" href="http://sighttp.qq.com/authd?IDKEY=b6641ebe118a960bb30b418c6dee9903eff24a2917122c04">有事您说话!点击此处联系管理员!</a></SPAN>
												</STRONG>
												</A>
											</TD>
										</TR>
									</TBODY>
								</TABLE>
								<DIV style="DISPLAY: none">
									<!-- 统计代码  -->
								</DIV>
							</TD>
						</TR>
					</TBODY>
				</TABLE>
			</DIV>
	</BODY>
</HTML>
